package dao

import (
	"writerhelper/global"
	"writerhelper/model"
)

func IsRegister(u *model.User) bool {
	var user model.User
	if res := global.MysqlDB.Where("email=? && pass_word=?",u.Email, u.PassWord).First(&user).Error; res != nil {
		return false
	}
	return true

}
